#ifndef __FH_SPI_EXTEND_H__
#define __FH_SPI_EXTEND_H__
#include "fh_spi.h"

struct spi_advanced_info
{
	UINT32 wire_support;
	UINT32 swap_support;
	UINT32 dtr_support;
	UINT32 data_reg_offset;
#define INC_SUPPORT	0x55
	UINT32 data_increase_support;
	UINT32 data_field_size;
};

SINT32 Spi_SetSwap(UINT32 base, unsigned int value);
SINT32 Spi_SetWidth(UINT32 base, unsigned int value);
void Spi_EccEnable(UINT32 base, u32 enable);
void Spi_SetEccTransferMode(UINT32 base, u32 mode);
void Spi_WaitEccComplete(UINT32 base);
void spi_hw_init(struct spi_slave *slave, int bus);

struct spi_advanced_info *get_spi_info(unsigned int bus_no);
#endif
